package aiP.A3.MPS;

import aiP.A3.AuftragKomponente.DataAccessLayer.DTO.AngebotDTO;
import aiP.A3.AuftragKomponente.DataAccessLayer.DTO.AuftragDTO;
import aiP.A3.AuftragKomponente.DataAccessLayer.Entity.Auftrag;
import aiP.A3.MPS.Interfaces.IServerInstance;
import aiP.A3.MPS.Interfaces.IServerManager;
import aiP.A3.PersistenceService.Persist;
import aiP.A3.PersistenceService.iEntity;

import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: Hero
 * Date: 15.05.14
 * Time: 15:13
 * To change this template use File | Settings | File Templates.
 */
public class ServerManager {

    //Port unter dem der ServerManager erreichtbar ist
    private static int Port = 23000;
    //Liste mit Serverinstanzen, maximal 2 möglich
    private Set<ServerInstance> ServerList = null;

    private ServerManager(){

        ServerList = new HashSet<ServerInstance>(2);

    }

    //<summary>
    // @return Ein Set aller aktiven Serverinstanzen
    //</summary>
    public Set<ServerInstance> getServerList(){
        return ServerList;
    }

//
//    @Override
//    public Collection<iEntity> getAllBauteile() {
//        return Persist.getInstance().load(iEntity.BAUTEIL);  //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//    @Override
//    public Collection<iEntity> getAllCustomer() {
//        return Persist.getInstance().load(iEntity.KUNDE);  //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//    @Override
//    public Collection<iEntity> getAllAuftraege() {
//        return Persist.getInstance().load(iEntity.AUFTRAG);  //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//    @Override
//    public Collection<iEntity> getAllAngebote() {
//        return Persist.getInstance().load(iEntity.ANGEBOT);  //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//    @Override
//    public void startEKG() throws RemoteException {
//        //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//    @Override
//    public void stopEKG() throws RemoteException {
//        //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//  //  @Override
//    public void startServer() {
//        //To change body of implemented methods use File | Settings | File Templates.
//    }
//
//  //  @Override
//    public void stopServer() {
//        //To change body of implemented methods use File | Settings | File Templates.
//    }
}
